Vue.component('app-footer',{
    template: "#app-footer",
    data:function () {
        return{
            ftBar:['男生','女生','20以下','移动'],
            selectedKey:-1
        }
    },
    methods:{
        select(key){
            this. selectedKey = key;
            this.$emit("index",key);//广播
        }
    }
});
